import request from '@/utils/request'

// 查询告警事件历史列表
export function listEventHis(query) {
  return request({
    url: '/am/eventHis/list',
    method: 'get',
    params: query
  })
}

// 查询告警事件历史详细
export function getEventHis(id) {
  return request({
    url: '/am/eventHis/' + id,
    method: 'get'
  })
}

// 新增告警事件历史
export function addEventHis(data) {
  return request({
    url: '/am/eventHis',
    method: 'post',
    data: data
  })
}

// 修改告警事件历史
export function updateEventHis(data) {
  return request({
    url: '/am/eventHis',
    method: 'put',
    data: data
  })
}

// 删除告警事件历史
export function delEventHis(id) {
  return request({
    url: '/am/eventHis/' + id,
    method: 'delete'
  })
}
